import request from '@/utils/request'


// 查询求购1, 查询出售2
export function goodslist(query) {
    return request({
        url: '/website/goods/list',
        method: 'get',
        params: query
    })
}

// 审核求购1, 查询出售2
export function goodscheck(data) {
    return request({
        url: '/website/goods/check',
        method: 'post',
        data
    })
}


// 查询买卖
export function contractlist(query) {
    return request({
        url: '/website/contract/list',
        method: 'get',
        params: query
    })
}

export function contractadd(data) {
    return request({
        url: '/website/contract/add',
        method: 'post',
        data
    })
}

export function contractcheck(data) {
    return request({
        url: '/website/contract/check',
        method: 'post',
        data
    })
}

// 查询保证金
export function amountlist(query) {
    return request({
        url: '/website/amount/list',
        method: 'get',
        params: query
    })
}

// 查询平台收益
export function profitlist(query) {
    return request({
        url: '/website/profit/list',
        method: 'get',
        params: query
    })
}

// 查询供应商采购商列表 
export function webuserlist() {
    return request({
        url: '/website/webuser/list',
        method: 'get',
    })
}